package com.csce.domain.entity.go_score.bo;

import com.doudou.core.container.ListUtil;
import com.osce.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
public class GoScoreExMarkScoreExcelBo implements Serializable {

    @Excel(name = "序号",needMerge = true)
    private Integer index;

    @Excel(name = "考试日期",needMerge = true)
    private String date;

    @Excel(name = "姓名",needMerge = true)
    private String  username;

    private String  userremark;

    @Excel(name = "准考证",needMerge = true)
    private String  usercode;

    @Excel(name = "X13")
    private List<GoScoreExMarkExcelBo> s13 = ListUtil.list(true);

    @Excel(name = "X213")
    private List<GoScoreExMarkExcelBo> s213 = ListUtil.list(true);

    @Excel(name = "X223")
    private List<GoScoreExMarkExcelBo> s223 = ListUtil.list(true);

    @Excel(name = "X313")
    private List<GoScoreExMarkExcelBo> s313 = ListUtil.list(true);

    @Excel(name = "X323")
    private List<GoScoreExMarkExcelBo> s323 = ListUtil.list(true);

    public void addSheets(String sheetName,GoScoreExMarkExcelBo bo){
        switch (sheetName){
            case "X13": {
                s13.add(bo);
            }break;
            case "X213": {
                s213.add(bo);
            }break;
            case "X223": {
                s223.add(bo);
            }break;
            case "X313": {
                s313.add(bo);
            }break;
            case "X323": {
                s323.add(bo);
            }break;
        }
    }

}
